package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 创建货品属性输入
 * @author yangdongjie
 * @CreateZoneGroupRequest.java
 * @2021年1月4日上午11:18:30
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class CreateUpdateSkuAttrRequest implements Serializable {
	
	private static final long serialVersionUID = -6263380560061569177L;

	@ApiModelProperty(value = "货品属性ID（详情接口有返回时就传递）", required = false)
    private Integer skuAttrId;
	
	/**
	 * 属性
	 */
	@ApiModelProperty(value = "属性", required = true)
	@NotBlank(message = "属性不能为空")
    private String attr;

	/**
	 * 值
	 */
	@ApiModelProperty(value = "值", required = true)
	@NotBlank(message = "值不能为空")
    private String value;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注", required = false)
    private String comments;

	/**
	 * 是否有效
	 */
	@ApiModelProperty(value = "是否有效", required = true)
	@NotNull(message = "是否有效不能为空")
    private Integer isEnabled;
}